package com.java.cloud.consumer.service;

import com.java.cloud.consumer.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "demo")
public interface Consumer8002Service {

    @GetMapping("/demo")
    JsonResult a();

    @GetMapping("/demo/{name}")
    JsonResult b(@PathVariable("name") String name);
}
